<?php

$mForm = new FormTemplate();
$mQuery = new DBQueryParse();
$mValidation = new InputValidation();


//INFO
////


//SETUP: FORM
$mForm->SetFormName("formRencanaStudiPilihMahasiswa");
$mForm->SetFormMethod("post");
$mForm->SetFormTargetAction("main.php?menu=99&submenu=329");
$mForm->SetFormTargetBack("main.php?menu=99&submenu=321");
$mForm->SetFormBackId($mBackId);
$mForm->SetFormTitle("PENGATURAN OTORISASI");
$mForm->SetAction('add');
/* $mForm->CreateInputForm("text");
  $mForm->SetTitle("FORM MAHASISWA"); */



//SETUP: INFO
/* EMPTY */
////
//

//SETUP: OPTION VALUE
$mPerson = new CorePerson();
$tResKategoriOption= $mPerson->GetListKategori();

$mUser = new CoreUser();
$tResOtorisasiOption= $mUser->GetListOtorisasi();


$mForm->CreateInputForm('');
$mForm->SetType('hidden');
$mForm->SetName('fPersonId');

$mForm->CreateInputForm('');
$mForm->SetType('select');
$mForm->SetName('fKategori');
$mForm->SetCaption('Kategori Pengguna');
$mForm->SetIsRequired(true);
$mForm->SetOptionDefaultNullValueCaption("-- Semua Kategori --");
$mForm->SetOptionValueFromDataTable($tResKategoriOption);
//$mForm->SetOptionNullDataCaption("-- Semua Program Studi --");

$mForm->CreateInputForm('');
$mForm->SetType('text');
$mForm->SetName('fPerson');
$mForm->SetCaption('Pengguna');
$mForm->SetClass("Autocomplete");
$mForm->SetIsRequired(true);
$mForm->SetHelper("<p>Untuk menginput field <b>Kode Matakuliah</b> secara manual (tanpa bantuan fitur <b>Autocomplete</b> form), cukup dengan mengisikan kode matakuliahnya saja</p> <b>contoh:</b><br>II5164");

$mForm->CreateInputForm('');
$mForm->SetType('select');
$mForm->SetName('fOtorisasi');
$mForm->SetCaption('Otorisasi');
$mForm->SetIsRequired(true);
$mForm->SetOptionValueFromDataTable($tResOtorisasiOption);

$mForm->CreateInputForm('');
$mForm->SetType('text');
$mForm->SetName('fUsername');
$mForm->SetCaption('Username');
$mForm->SetIsRequired(true);
$mForm->SetHelper("<p>Untuk menginput field <b>Kode Matakuliah</b> secara manual (tanpa bantuan fitur <b>Autocomplete</b> form), cukup dengan mengisikan kode matakuliahnya saja</p> <b>contoh:</b><br>II5164");

$mForm->PrintForm();

?>
